home *** CD-ROM | disk | FTP | other *** search
-
-
- On Mon, 23 Jan 1995, Dolfan in VA wrote:
-
- > On Mon, 23 Jan 1995, Marco Beretta wrote:
- > > None has some ideas in how to update a object in a fast way without
- > > having to update all the object on the screen (which really works well but
- > > slows everything down!) ?
- > Well, if you have TURBO PLUS, couldn't you use the (I can't remember the
- > command) Wait VBL like command where you specify which line to wait for
- > before continuing? In other words if you have a scroller at the top of the
- > screen and the scroller's bottom is on line 75, just wait till line 76
- > before going on to the next loop.
- >
- > Make sense?
-
- This would be a good thing if I I hadn't to update a window which is extends
- from the middle to the bottom of the window.
- I have to wait till the Vertical Blank reach the bottom. Unless there is
- a way to set the start position of the vertical blank!
-
-
- >Many of the interfaces I write run into these problems. I've found the
- >only way of speeding up these kind of re-draws is to break each section of
- >the screen, or even each button, into individual procedures. Thus, when
- >the user clicks on a button and you want the button to look "depressed",
- >you simply increment a flag and call that button's procedure.
- >Alternatively, as I said, you could create procedures for entire sections,
- >such as:
-
- >TRANSLATE: X:_____ Y:_____ Z:_____
-
- >This would be in one procedure, so whenever a value in the X, Y, or Z text
- >boxes is updated, the entire TRANSLATE procedure is called, updating all
- >the pertinent values.
-
- No, the problem are not Procedure. They are quite fast... they are great
- for modify a single object... but when you have 3-4 object on the screen
- things become dramatically slow.
-
-
-
- I'm thinking to delete all the windows and then update them when you have
- decided the position (or the orientation) of the object. This would make
- object definition quite difficult, though.
-
- I watched Imagine way to move and rotate objects. I have tried to use a
- simila way of updating screen, but all resulted in mess (the code has
- become too complicated even for me!)
-
- Another way would be drawing and deleting only the object to be modified
- leaving the backgraoud to corrupt and them update everything when you
- have decided or better when you want (pressing RETURN for example) as
- Imagine do. (But in Imagine background is not corrupted).
-
- I also thought of using sprite and bobs... what a mess!!!!
-
- However thanks for the help
-
- M&F
-
-